<?php
/**
 * Created by PhpStorm.
 * User: 卓哥哥
 * Date: 2017/3/30
 * Time: 15:00
 */


require(__DIR__ . "/../bootstrap.php");

// Construct the FDS client
$access_key = "5411744243597";
$access_secret = "hu/XTi7mhl1j+pL5qkQGnw==";
$credential = new \FDS\credential\BasicFDSCredential($access_key, $access_secret);
$fds_config = new \FDS\FDSClientConfiguration();
$fds_config->setRegionName("awsbj0");
$fds_config->enableHttps(true);
$fds_config->enableCdnForUpload(false);
$fds_config->enableCdnForDownload(true);

$fds_client = new \FDS\GalaxyFDSClient($credential, $fds_config);
$bucket_name = "test5";

try {

}catch (MySQLiQueryException $ex) {
    //echo '{"rval":3}';// 失败
}
